// import { PatientParams } from '@/type/patient'
import type { PatientItem, PatientParams } from "@/type/patient"
import { request } from "@/utils/http"

/**
 * 添加患者（家庭档案）
 */
export const addPatientApi = (data: PatientParams) => {
  return request.post("/patient/add", data)
}

/**
 * 获取患者（家庭档案）列表
 */
export const patientListApi = () => {
  return request.get<null, PatientItem[]>('/patient/mylist')
}